import store from '@/store'

export function hasPermission(permission) {
    const myBtns = store.state.btn;
    return myBtns.indexOf(permission) > -1;
}